package com.example.demo.mapper;


import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import org.apache.ibatis.annotations.Param;

import com.example.demo.bean.CmsCategory;


@Mapper
public interface CmsCategoryMapper {
    int deleteByPrimaryKey(String id);

    int insert(CmsCategory record);

    CmsCategory selectByPrimaryKey(String id);

    List<CmsCategory> selectAll();

    int updateByPrimaryKey(CmsCategory record);
    
    List<CmsCategory> allCategoryWithParent();

    
  //按照栏目编号，批量删除栏目的信息
    int batchDeleteByIds(@Param("ids")String[] ids);
    
    int selectCountRefPid(String id);
   


}